//
//  ScrollViewCollectionViewCell.m
//  MarianasTrench
//
//  Created by 付建国 on 16/3/18.
//  Copyright © 2016年 王爵. All rights reserved.
//

#import "ScrollViewCollectionViewCell.h"

@interface ScrollViewCollectionViewCell ()

@property (nonatomic, strong) DCPicScrollView *picView;

@end

@implementation ScrollViewCollectionViewCell

- (void)setArr:(NSMutableArray *)arr{
    _arr = arr;
    [self fuzhi];
}
- (void)fuzhi{
    [_picView removeFromSuperview];
    NSArray *UrlStringArray = [NSArray arrayWithArray:_arr];
    self.picView = [DCPicScrollView picScrollViewWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 200) WithImageUrls:UrlStringArray];
    
      [self.contentView addSubview:_picView];

    _picView.AutoScrollDelay = 3;
    [[DCWebImageManager shareManager] setDownloadImageRepeatCount:1];
    [[DCWebImageManager shareManager] setDownLoadImageError:^(NSError *error, NSString *string) {
        
    }];
    _picView.imageViewDidTapAtIndex = ^(NSInteger index) {
        
        
    };
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    [super applyLayoutAttributes:layoutAttributes];
}




@end
